<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <!-- 音频 autoplay loop-->
    <audio controls>
      <source src="https://www.w3school.com.cn/i/song.ogg" type="audio/ogg" />
      <source src="https://www.w3school.com.cn/i/song.mp3" type="audio/mpeg" />
      你的浏览器不支持音频格式
    </audio>

    <!-- 视频 -->
    <video width="320" height="240" controls autoplay>
      <source src="https://www.w3school.com.cn/i/movie.ogg" type="video/ogg" />
      <source src="https://www.w3school.com.cn/i/movie.mp4" type="video/mp4" />
      <source
        src="https://www.w3school.com.cn/i/movie.webm"
        type="video/webm"
      />
    </video>
  </body>
</html>
